#!/usr/bin/env python
#-*- coding:utf8 -*-
import web
import hashlib
from app.models.model import Model
from app.helpers.users_helper import Helper
class User(Model):
    table = 'users'

    #创建用户
    def create(self, data):
        try:
            return self.insert(
                    account = data['account'],
                    email   = data['email'],
                    password= data['password']
                    )
        except:
            return False
